/**
 * 
 */
package neptune.web.client.view.input;

/**
 * A trivial implementation of an InputValidator for email strings, it returns
 * false only if the input string is not in the format [any char]@[any
 * char].[any char]
 * 
 * @author Roberto Bifulco [info@robertobifulco.it, robertobifulco.it]
 * @see neptune.web.client.view.input.InputValidator
 * 
 */
public class EmailValidator implements InputValidator {

	/*
	 * (non-Javadoc)
	 * 
	 * @see neptune.web.client.view.InputValidator#isValid(java.lang.String)
	 */
	public boolean isValid(String input) {
		return input.matches(".+@.+\\..+");
	}

}
